<table id="dataTable"></table>

{include file="system@block/layui" /}

<script type="text/html" id="createTimeTpl">
    <div>{{layui.util.toDateString(d.create_time * 1000) }}</div>
</script>

<script type="text/javascript">
    layui.use(['table', 'tool'], function() {
        var table = layui.table;
        table.render({
            elem: '#dataTable'
            ,url: "{:url('', ['id'=>$materialReturnId])}" //数据接口
            ,page: true //开启分页
            ,skin: 'row'
            ,even: true
            ,limit: 20
            ,limits: [20,50,100,150,200]
            ,text: {
                none : '暂无相关数据'
            }
            ,toolbar: false
            ,defaultToolbar: ['filter', 'exports', 'print']
            ,cols: [[ //表头
                {field: 'admin_name', title: '操作人'}
                ,{field: 'remark', title: '操作内容'}
                ,{field: 'create_time', title: '操作时间',templet: '#createTimeTpl', width:160}
            ]]
        });
    });
</script>